import { createWebHistory, createRouter, RouteRecordRaw } from "vue-router";
const routes: Array<RouteRecordRaw> = [
	{ path: "/", redirect: "/costCalculate" },
	{
		path: "/costCalculate",
		name: "costCalculate",
		meta: {
			title: "水电燃气费",
			app: {
				type: "init",
				titleView: {
					type: "title",
					title: "水电燃气费"
				}
			}
		},
		component: () => import("@/views/costCalculate/index.vue")
	},{
		path: "/costCalculate/single",
		name: "costCalculateSingle",
		meta: {
			title: "水电燃气费",
			app: {
				type: "init",
				titleView: {
					type: "title",
					title: "水电燃气费"
				}
			}
		},
		component: () => import("@/views/costCalculate/single.vue")
	},{
		path: "/costCalculate/single/detail",
		name: "costCalculateSingleDetail",
		meta: {
			title: "水电燃气费",
			app: {
				type: "init",
				titleView: {
					type: "title",
					title: "水电燃气费"
				}
			}
		},
		component: () => import("@/views/costCalculate/singleDetail.vue")
	},{
		path: "/costCalculate/all",
		name: "costCalculateAll",
		meta: {
			title: "水电燃气费",
			app: {
				type: "init",
				titleView: {
					type: "title",
					title: "水电燃气费"
				}
			}
		},
		component: () => import("@/views/costCalculate/all.vue")
	}
];

const router = createRouter({
	history: createWebHistory("record-print-app"),
	routes
});
export default router;
